package com.member.common.enums;


import lombok.Getter;

import java.util.Objects;

@Getter
public enum FeedbackStatusEnum {
    FEEDBACK(0, "待反馈"),
    INCONSISTENT( 10, "不一致"),
    CONSISTENT( 20, "一致"),
    ;

    private final Integer key;
    private final String desc;

    FeedbackStatusEnum(Integer key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    public static FeedbackStatusEnum getByKey(Integer _key){
        for (FeedbackStatusEnum item : FeedbackStatusEnum.values()){
            if(Objects.equals(item.getKey(), _key)){
                return item;
            }
        }
        return null;
    }

}
